package com.zsc.wxm.ysh.anjo.sms.feign.fallback;

import com.zsc.wxm.ysh.anjo.result.Result;
import com.zsc.wxm.ysh.anjo.service.base.model.member.dto.MemberInfoDTO;
import com.zsc.wxm.ysh.anjo.service.base.model.member.qo.MemberQuery;
import com.zsc.wxm.ysh.anjo.sms.feign.MemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 描述：服务熔断
 *
 * @author playmaker
 * @since 2021/2/9 10:21
 */
@Service
@Slf4j
public class MemberServiceFallBack implements MemberService {
    @Override
    public Result updateMemberInfo(MemberInfoDTO params) {
        log.error("MemberServiceFallBack触发服务熔断...");
        return Result.error("调用更新用户信息服务超时...");
    }

    @Override
    public Result getOne(MemberQuery memberQuery) {
        log.error("MemberServiceFallBack触发服务熔断...");
        return Result.error("调用获取用户信息服务超时...");
    }
}
